package com.example.module_maintenance.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.module_maintenance.R
import com.example.module_maintenance.entity.CultureEntity

class CultureAdapter : BaseQuickAdapter<CultureEntity,BaseViewHolder>(R.layout.item_culture_list){
    override fun convert(holder: BaseViewHolder, item: CultureEntity) {
        holder.setText(R.id.wh_title,item.title)
        holder.setText(R.id.wh_content,item.content)
        holder.setText(R.id.wh_time,item.publishDate)
    }

}